<?php
$tdatatbl_don_vi_nghien_cuu=array();
	$tdatatbl_don_vi_nghien_cuu[".NumberOfChars"]=80; 
	$tdatatbl_don_vi_nghien_cuu[".ShortName"]="tbl_don_vi_nghien_cuu";
	$tdatatbl_don_vi_nghien_cuu[".OwnerID"]="";
	$tdatatbl_don_vi_nghien_cuu[".OriginalTable"]="tbl_don_vi_nghien_cuu";


	
//	field labels
$fieldLabelstbl_don_vi_nghien_cuu = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelstbl_don_vi_nghien_cuu["English"]=array();
	$fieldToolTipstbl_don_vi_nghien_cuu["English"]=array();
	$fieldLabelstbl_don_vi_nghien_cuu["English"]["id"] = "Id";
	$fieldToolTipstbl_don_vi_nghien_cuu["English"]["id"] = "";
	$fieldLabelstbl_don_vi_nghien_cuu["English"]["ten_nghien_cuu"] = "Ten Nghien Cuu";
	$fieldToolTipstbl_don_vi_nghien_cuu["English"]["ten_nghien_cuu"] = "";
	$fieldLabelstbl_don_vi_nghien_cuu["English"]["hinh_anh"] = "Hinh Anh";
	$fieldToolTipstbl_don_vi_nghien_cuu["English"]["hinh_anh"] = "";
	$fieldLabelstbl_don_vi_nghien_cuu["English"]["mo_ta_ngan_gon"] = "Mo Ta Ngan Gon";
	$fieldToolTipstbl_don_vi_nghien_cuu["English"]["mo_ta_ngan_gon"] = "";
	$fieldLabelstbl_don_vi_nghien_cuu["English"]["mo_ta_chi_tiet"] = "Mo Ta Chi Tiet";
	$fieldToolTipstbl_don_vi_nghien_cuu["English"]["mo_ta_chi_tiet"] = "";
	$fieldLabelstbl_don_vi_nghien_cuu["English"]["ma_danh_muc_don_vi_nghien_cuu"] = "Ma Danh Muc Don Vi Nghien Cuu";
	$fieldToolTipstbl_don_vi_nghien_cuu["English"]["ma_danh_muc_don_vi_nghien_cuu"] = "";
	$fieldLabelstbl_don_vi_nghien_cuu["English"]["ten_danh_muc_don_vi_nghien_cuu"] = "Ten Danh Muc Don Vi Nghien Cuu";
	$fieldToolTipstbl_don_vi_nghien_cuu["English"]["ten_danh_muc_don_vi_nghien_cuu"] = "";
	if (count($fieldToolTipstbl_don_vi_nghien_cuu["English"])){
		$tdatatbl_don_vi_nghien_cuu[".isUseToolTips"]=true;
	}
}


	
	$tdatatbl_don_vi_nghien_cuu[".NCSearch"]=true;

	

$tdatatbl_don_vi_nghien_cuu[".shortTableName"] = "tbl_don_vi_nghien_cuu";
$tdatatbl_don_vi_nghien_cuu[".nSecOptions"] = 0;
$tdatatbl_don_vi_nghien_cuu[".recsPerRowList"] = 1;	
$tdatatbl_don_vi_nghien_cuu[".tableGroupBy"] = "0";
$tdatatbl_don_vi_nghien_cuu[".mainTableOwnerID"] = "";
$tdatatbl_don_vi_nghien_cuu[".moveNext"] = 1;




$tdatatbl_don_vi_nghien_cuu[".showAddInPopup"] = false;

$tdatatbl_don_vi_nghien_cuu[".showEditInPopup"] = false;

$tdatatbl_don_vi_nghien_cuu[".showViewInPopup"] = false;


$tdatatbl_don_vi_nghien_cuu[".fieldsForRegister"] = array();

$tdatatbl_don_vi_nghien_cuu[".listAjax"] = false;

	$tdatatbl_don_vi_nghien_cuu[".audit"] = false;

	$tdatatbl_don_vi_nghien_cuu[".locking"] = false;
	
$tdatatbl_don_vi_nghien_cuu[".listIcons"] = true;
$tdatatbl_don_vi_nghien_cuu[".edit"] = true;
$tdatatbl_don_vi_nghien_cuu[".inlineEdit"] = true;
$tdatatbl_don_vi_nghien_cuu[".view"] = true;

$tdatatbl_don_vi_nghien_cuu[".exportTo"] = true;

$tdatatbl_don_vi_nghien_cuu[".printFriendly"] = true;

$tdatatbl_don_vi_nghien_cuu[".delete"] = true;

$tdatatbl_don_vi_nghien_cuu[".showSimpleSearchOptions"] = false;

$tdatatbl_don_vi_nghien_cuu[".showSearchPanel"] = true;


$tdatatbl_don_vi_nghien_cuu[".isUseAjaxSuggest"] = true;

$tdatatbl_don_vi_nghien_cuu[".rowHighlite"] = true;


// button handlers file names

$tdatatbl_don_vi_nghien_cuu[".addPageEvents"] = false;

$tdatatbl_don_vi_nghien_cuu[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatatbl_don_vi_nghien_cuu[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatatbl_don_vi_nghien_cuu[".isUseTimeForSearch"] = false;

$tdatatbl_don_vi_nghien_cuu[".isUseiBox"] = false;



$tdatatbl_don_vi_nghien_cuu[".isUseInlineAdd"] = true;

$tdatatbl_don_vi_nghien_cuu[".isUseInlineEdit"] = true;
$tdatatbl_don_vi_nghien_cuu[".isUseInlineJs"] = $tdatatbl_don_vi_nghien_cuu[".isUseInlineAdd"] || $tdatatbl_don_vi_nghien_cuu[".isUseInlineEdit"];

$tdatatbl_don_vi_nghien_cuu[".allSearchFields"] = array();

$tdatatbl_don_vi_nghien_cuu[".globSearchFields"][] = "ten_nghien_cuu";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ten_nghien_cuu", $tdatatbl_don_vi_nghien_cuu[".allSearchFields"]))
{
	$tdatatbl_don_vi_nghien_cuu[".allSearchFields"][] = "ten_nghien_cuu";	
}
$tdatatbl_don_vi_nghien_cuu[".globSearchFields"][] = "hinh_anh";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hinh_anh", $tdatatbl_don_vi_nghien_cuu[".allSearchFields"]))
{
	$tdatatbl_don_vi_nghien_cuu[".allSearchFields"][] = "hinh_anh";	
}
$tdatatbl_don_vi_nghien_cuu[".globSearchFields"][] = "mo_ta_ngan_gon";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("mo_ta_ngan_gon", $tdatatbl_don_vi_nghien_cuu[".allSearchFields"]))
{
	$tdatatbl_don_vi_nghien_cuu[".allSearchFields"][] = "mo_ta_ngan_gon";	
}
$tdatatbl_don_vi_nghien_cuu[".globSearchFields"][] = "ma_danh_muc_don_vi_nghien_cuu";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ma_danh_muc_don_vi_nghien_cuu", $tdatatbl_don_vi_nghien_cuu[".allSearchFields"]))
{
	$tdatatbl_don_vi_nghien_cuu[".allSearchFields"][] = "ma_danh_muc_don_vi_nghien_cuu";	
}
$tdatatbl_don_vi_nghien_cuu[".globSearchFields"][] = "ten_danh_muc_don_vi_nghien_cuu";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ten_danh_muc_don_vi_nghien_cuu", $tdatatbl_don_vi_nghien_cuu[".allSearchFields"]))
{
	$tdatatbl_don_vi_nghien_cuu[".allSearchFields"][] = "ten_danh_muc_don_vi_nghien_cuu";	
}


$tdatatbl_don_vi_nghien_cuu[".googleLikeFields"][] = "id";
$tdatatbl_don_vi_nghien_cuu[".googleLikeFields"][] = "ten_nghien_cuu";
$tdatatbl_don_vi_nghien_cuu[".googleLikeFields"][] = "hinh_anh";
$tdatatbl_don_vi_nghien_cuu[".googleLikeFields"][] = "mo_ta_ngan_gon";
$tdatatbl_don_vi_nghien_cuu[".googleLikeFields"][] = "ma_danh_muc_don_vi_nghien_cuu";
$tdatatbl_don_vi_nghien_cuu[".googleLikeFields"][] = "ten_danh_muc_don_vi_nghien_cuu";



$tdatatbl_don_vi_nghien_cuu[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatatbl_don_vi_nghien_cuu[".allSearchFields"])) 
{
	$tdatatbl_don_vi_nghien_cuu[".allSearchFields"][] = "id";	
}
$tdatatbl_don_vi_nghien_cuu[".advSearchFields"][] = "ten_nghien_cuu";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ten_nghien_cuu", $tdatatbl_don_vi_nghien_cuu[".allSearchFields"])) 
{
	$tdatatbl_don_vi_nghien_cuu[".allSearchFields"][] = "ten_nghien_cuu";	
}
$tdatatbl_don_vi_nghien_cuu[".advSearchFields"][] = "hinh_anh";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hinh_anh", $tdatatbl_don_vi_nghien_cuu[".allSearchFields"])) 
{
	$tdatatbl_don_vi_nghien_cuu[".allSearchFields"][] = "hinh_anh";	
}
$tdatatbl_don_vi_nghien_cuu[".advSearchFields"][] = "mo_ta_ngan_gon";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("mo_ta_ngan_gon", $tdatatbl_don_vi_nghien_cuu[".allSearchFields"])) 
{
	$tdatatbl_don_vi_nghien_cuu[".allSearchFields"][] = "mo_ta_ngan_gon";	
}
$tdatatbl_don_vi_nghien_cuu[".advSearchFields"][] = "mo_ta_chi_tiet";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("mo_ta_chi_tiet", $tdatatbl_don_vi_nghien_cuu[".allSearchFields"])) 
{
	$tdatatbl_don_vi_nghien_cuu[".allSearchFields"][] = "mo_ta_chi_tiet";	
}
$tdatatbl_don_vi_nghien_cuu[".advSearchFields"][] = "ma_danh_muc_don_vi_nghien_cuu";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ma_danh_muc_don_vi_nghien_cuu", $tdatatbl_don_vi_nghien_cuu[".allSearchFields"])) 
{
	$tdatatbl_don_vi_nghien_cuu[".allSearchFields"][] = "ma_danh_muc_don_vi_nghien_cuu";	
}
$tdatatbl_don_vi_nghien_cuu[".advSearchFields"][] = "ten_danh_muc_don_vi_nghien_cuu";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ten_danh_muc_don_vi_nghien_cuu", $tdatatbl_don_vi_nghien_cuu[".allSearchFields"])) 
{
	$tdatatbl_don_vi_nghien_cuu[".allSearchFields"][] = "ten_danh_muc_don_vi_nghien_cuu";	
}

$tdatatbl_don_vi_nghien_cuu[".isTableType"] = "list";


	

$tdatatbl_don_vi_nghien_cuu[".isDisplayLoading"] = true;

$tdatatbl_don_vi_nghien_cuu[".isResizeColumns"] = false;





$tdatatbl_don_vi_nghien_cuu[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatatbl_don_vi_nghien_cuu[".strOrderBy"] = $gstrOrderBy;
	
$tdatatbl_don_vi_nghien_cuu[".orderindexes"] = array();

$tdatatbl_don_vi_nghien_cuu[".sqlHead"] = "SELECT tbl_don_vi_nghien_cuu.id,  tbl_don_vi_nghien_cuu.ten_nghien_cuu,  tbl_don_vi_nghien_cuu.hinh_anh,  tbl_don_vi_nghien_cuu.mo_ta_ngan_gon,  tbl_don_vi_nghien_cuu.mo_ta_chi_tiet,  tbl_don_vi_nghien_cuu.ma_danh_muc_don_vi_nghien_cuu,  tbl_danh_muc_don_vi_nghien_cuu.ten_danh_muc_don_vi_nghien_cuu";
$tdatatbl_don_vi_nghien_cuu[".sqlFrom"] = "FROM tbl_don_vi_nghien_cuu  INNER JOIN tbl_danh_muc_don_vi_nghien_cuu ON tbl_danh_muc_don_vi_nghien_cuu.id = tbl_don_vi_nghien_cuu.ma_danh_muc_don_vi_nghien_cuu";
$tdatatbl_don_vi_nghien_cuu[".sqlWhereExpr"] = "";
$tdatatbl_don_vi_nghien_cuu[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatatbl_don_vi_nghien_cuu[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatatbl_don_vi_nghien_cuu[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatatbl_don_vi_nghien_cuu[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "tbl_don_vi_nghien_cuu";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "tbl_don_vi_nghien_cuu.id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				
		
				
		
		
		
			$tdatatbl_don_vi_nghien_cuu["id"]=$fdata;
//	ten_nghien_cuu
	$fdata = array();
	$fdata["strName"] = "ten_nghien_cuu";
	$fdata["ownerTable"] = "tbl_don_vi_nghien_cuu";
		$fdata["Label"]="Ten Nghien Cuu"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ten_nghien_cuu";
	
		$fdata["FullName"]= "tbl_don_vi_nghien_cuu.ten_nghien_cuu";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_don_vi_nghien_cuu["ten_nghien_cuu"]=$fdata;
//	hinh_anh
	$fdata = array();
	$fdata["strName"] = "hinh_anh";
	$fdata["ownerTable"] = "tbl_don_vi_nghien_cuu";
		$fdata["Label"]="Hinh Anh"; 
	
		
		$fdata["LinkPrefix"]="upload/"; 
	
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Document upload";
	$fdata["ViewFormat"]= "Document Download";
	
		
		
		
		
		
	$fdata["GoodName"]= "hinh_anh";
	
		$fdata["FullName"]= "tbl_don_vi_nghien_cuu.hinh_anh";
	
		
		
		
		
		
			$fdata["UploadFolder"]="upload"; 
		$fdata["Index"]= 3;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_don_vi_nghien_cuu["hinh_anh"]=$fdata;
//	mo_ta_ngan_gon
	$fdata = array();
	$fdata["strName"] = "mo_ta_ngan_gon";
	$fdata["ownerTable"] = "tbl_don_vi_nghien_cuu";
		$fdata["Label"]="Mo Ta Ngan Gon"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "mo_ta_ngan_gon";
	
		$fdata["FullName"]= "tbl_don_vi_nghien_cuu.mo_ta_ngan_gon";
	
		
		
		
		
		
				$fdata["Index"]= 4;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_don_vi_nghien_cuu["mo_ta_ngan_gon"]=$fdata;
//	mo_ta_chi_tiet
	$fdata = array();
	$fdata["strName"] = "mo_ta_chi_tiet";
	$fdata["ownerTable"] = "tbl_don_vi_nghien_cuu";
		$fdata["Label"]="Mo Ta Chi Tiet"; 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "HTML";
	
		
		
		
		
		
	$fdata["GoodName"]= "mo_ta_chi_tiet";
	
		$fdata["FullName"]= "tbl_don_vi_nghien_cuu.mo_ta_chi_tiet";
	
		
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 5;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=1200";
		$fdata["nRows"] = 1200;
			$fdata["EditParams"].= " cols=600";
		$fdata["nCols"] = 600;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_don_vi_nghien_cuu["mo_ta_chi_tiet"]=$fdata;
//	ma_danh_muc_don_vi_nghien_cuu
	$fdata = array();
	$fdata["strName"] = "ma_danh_muc_don_vi_nghien_cuu";
	$fdata["ownerTable"] = "tbl_don_vi_nghien_cuu";
		$fdata["Label"]="Ma Danh Muc Don Vi Nghien Cuu"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="ten_danh_muc_don_vi_nghien_cuu";
				$fdata["LookupTable"]="tbl_danh_muc_don_vi_nghien_cuu";
	$fdata["LookupOrderBy"]="";
																			
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ma_danh_muc_don_vi_nghien_cuu";
	
		$fdata["FullName"]= "tbl_don_vi_nghien_cuu.ma_danh_muc_don_vi_nghien_cuu";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 6;
				
		
		$fdata["bAddPage"]=true; 
	
		
		$fdata["bEditPage"]=true; 
	
		
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_don_vi_nghien_cuu["ma_danh_muc_don_vi_nghien_cuu"]=$fdata;
//	ten_danh_muc_don_vi_nghien_cuu
	$fdata = array();
	$fdata["strName"] = "ten_danh_muc_don_vi_nghien_cuu";
	$fdata["ownerTable"] = "tbl_danh_muc_don_vi_nghien_cuu";
		$fdata["Label"]="Ten Danh Muc Don Vi Nghien Cuu"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ten_danh_muc_don_vi_nghien_cuu";
	
		$fdata["FullName"]= "tbl_danh_muc_don_vi_nghien_cuu.ten_danh_muc_don_vi_nghien_cuu";
	
		
		
		
		
		
				$fdata["Index"]= 7;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_don_vi_nghien_cuu["ten_danh_muc_don_vi_nghien_cuu"]=$fdata;

	
$tables_data["tbl_don_vi_nghien_cuu"]=&$tdatatbl_don_vi_nghien_cuu;
$field_labels["tbl_don_vi_nghien_cuu"] = &$fieldLabelstbl_don_vi_nghien_cuu;
$fieldToolTips["tbl_don_vi_nghien_cuu"] = &$fieldToolTipstbl_don_vi_nghien_cuu;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["tbl_don_vi_nghien_cuu"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["tbl_don_vi_nghien_cuu"] = array();

$mIndex = 1-1;
			$strOriginalDetailsTable="tbl_danh_muc_don_vi_nghien_cuu";
	$masterTablesData["tbl_don_vi_nghien_cuu"][$mIndex] = array(
		  "mDataSourceTable"=>"tbl_danh_muc_don_vi_nghien_cuu"
		, "mOriginalTable" => $strOriginalDetailsTable
		, "mShortTable" => "tbl_danh_muc_don_vi_nghien_cuu"
		, "masterKeys" => array()
		, "detailKeys" => array()
		, "dispChildCount" => "1"
		, "hideChild" => "0"	
		, "dispInfo" => "1"								
		, "previewOnList" => 1
		, "previewOnAdd" => 0
		, "previewOnEdit" => 0
		, "previewOnView" => 0
	);	
		$masterTablesData["tbl_don_vi_nghien_cuu"][$mIndex]["masterKeys"][]="id";
		$masterTablesData["tbl_don_vi_nghien_cuu"][$mIndex]["detailKeys"][]="ma_danh_muc_don_vi_nghien_cuu";

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto78=array();
$proto78["m_strHead"] = "SELECT";
$proto78["m_strFieldList"] = "tbl_don_vi_nghien_cuu.id,  tbl_don_vi_nghien_cuu.ten_nghien_cuu,  tbl_don_vi_nghien_cuu.hinh_anh,  tbl_don_vi_nghien_cuu.mo_ta_ngan_gon,  tbl_don_vi_nghien_cuu.mo_ta_chi_tiet,  tbl_don_vi_nghien_cuu.ma_danh_muc_don_vi_nghien_cuu,  tbl_danh_muc_don_vi_nghien_cuu.ten_danh_muc_don_vi_nghien_cuu";
$proto78["m_strFrom"] = "FROM tbl_don_vi_nghien_cuu  INNER JOIN tbl_danh_muc_don_vi_nghien_cuu ON tbl_danh_muc_don_vi_nghien_cuu.id = tbl_don_vi_nghien_cuu.ma_danh_muc_don_vi_nghien_cuu";
$proto78["m_strWhere"] = "";
$proto78["m_strOrderBy"] = "";
$proto78["m_strTail"] = "";
$proto79=array();
$proto79["m_sql"] = "";
$proto79["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto79["m_column"]=$obj;
$proto79["m_contained"] = array();
$proto79["m_strCase"] = "";
$proto79["m_havingmode"] = "0";
$proto79["m_inBrackets"] = "0";
$proto79["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto79);

$proto78["m_where"] = $obj;
$proto81=array();
$proto81["m_sql"] = "";
$proto81["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto81["m_column"]=$obj;
$proto81["m_contained"] = array();
$proto81["m_strCase"] = "";
$proto81["m_havingmode"] = "0";
$proto81["m_inBrackets"] = "0";
$proto81["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto81);

$proto78["m_having"] = $obj;
$proto78["m_fieldlist"] = array();
						$proto83=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "tbl_don_vi_nghien_cuu"
));

$proto83["m_expr"]=$obj;
$proto83["m_alias"] = "";
$obj = new SQLFieldListItem($proto83);

$proto78["m_fieldlist"][]=$obj;
						$proto85=array();
			$obj = new SQLField(array(
	"m_strName" => "ten_nghien_cuu",
	"m_strTable" => "tbl_don_vi_nghien_cuu"
));

$proto85["m_expr"]=$obj;
$proto85["m_alias"] = "";
$obj = new SQLFieldListItem($proto85);

$proto78["m_fieldlist"][]=$obj;
						$proto87=array();
			$obj = new SQLField(array(
	"m_strName" => "hinh_anh",
	"m_strTable" => "tbl_don_vi_nghien_cuu"
));

$proto87["m_expr"]=$obj;
$proto87["m_alias"] = "";
$obj = new SQLFieldListItem($proto87);

$proto78["m_fieldlist"][]=$obj;
						$proto89=array();
			$obj = new SQLField(array(
	"m_strName" => "mo_ta_ngan_gon",
	"m_strTable" => "tbl_don_vi_nghien_cuu"
));

$proto89["m_expr"]=$obj;
$proto89["m_alias"] = "";
$obj = new SQLFieldListItem($proto89);

$proto78["m_fieldlist"][]=$obj;
						$proto91=array();
			$obj = new SQLField(array(
	"m_strName" => "mo_ta_chi_tiet",
	"m_strTable" => "tbl_don_vi_nghien_cuu"
));

$proto91["m_expr"]=$obj;
$proto91["m_alias"] = "";
$obj = new SQLFieldListItem($proto91);

$proto78["m_fieldlist"][]=$obj;
						$proto93=array();
			$obj = new SQLField(array(
	"m_strName" => "ma_danh_muc_don_vi_nghien_cuu",
	"m_strTable" => "tbl_don_vi_nghien_cuu"
));

$proto93["m_expr"]=$obj;
$proto93["m_alias"] = "";
$obj = new SQLFieldListItem($proto93);

$proto78["m_fieldlist"][]=$obj;
						$proto95=array();
			$obj = new SQLField(array(
	"m_strName" => "ten_danh_muc_don_vi_nghien_cuu",
	"m_strTable" => "tbl_danh_muc_don_vi_nghien_cuu"
));

$proto95["m_expr"]=$obj;
$proto95["m_alias"] = "";
$obj = new SQLFieldListItem($proto95);

$proto78["m_fieldlist"][]=$obj;
$proto78["m_fromlist"] = array();
												$proto97=array();
$proto97["m_link"] = "SQLL_MAIN";
			$proto98=array();
$proto98["m_strName"] = "tbl_don_vi_nghien_cuu";
$proto98["m_columns"] = array();
$proto98["m_columns"][] = "id";
$proto98["m_columns"][] = "ten_nghien_cuu";
$proto98["m_columns"][] = "hinh_anh";
$proto98["m_columns"][] = "mo_ta_ngan_gon";
$proto98["m_columns"][] = "mo_ta_chi_tiet";
$proto98["m_columns"][] = "ma_danh_muc_don_vi_nghien_cuu";
$obj = new SQLTable($proto98);

$proto97["m_table"] = $obj;
$proto97["m_alias"] = "";
$proto99=array();
$proto99["m_sql"] = "";
$proto99["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto99["m_column"]=$obj;
$proto99["m_contained"] = array();
$proto99["m_strCase"] = "";
$proto99["m_havingmode"] = "0";
$proto99["m_inBrackets"] = "0";
$proto99["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto99);

$proto97["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto97);

$proto78["m_fromlist"][]=$obj;
												$proto101=array();
$proto101["m_link"] = "SQLL_INNERJOIN";
			$proto102=array();
$proto102["m_strName"] = "tbl_danh_muc_don_vi_nghien_cuu";
$proto102["m_columns"] = array();
$proto102["m_columns"][] = "id";
$proto102["m_columns"][] = "ten_danh_muc_don_vi_nghien_cuu";
$obj = new SQLTable($proto102);

$proto101["m_table"] = $obj;
$proto101["m_alias"] = "";
$proto103=array();
$proto103["m_sql"] = "tbl_danh_muc_don_vi_nghien_cuu.id = tbl_don_vi_nghien_cuu.ma_danh_muc_don_vi_nghien_cuu";
$proto103["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "tbl_danh_muc_don_vi_nghien_cuu"
));

$proto103["m_column"]=$obj;
$proto103["m_contained"] = array();
$proto103["m_strCase"] = "= tbl_don_vi_nghien_cuu.ma_danh_muc_don_vi_nghien_cuu";
$proto103["m_havingmode"] = "0";
$proto103["m_inBrackets"] = "0";
$proto103["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto103);

$proto101["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto101);

$proto78["m_fromlist"][]=$obj;
$proto78["m_groupby"] = array();
$proto78["m_orderby"] = array();
$obj = new SQLQuery($proto78);

$queryData_tbl_don_vi_nghien_cuu = $obj;
$tdatatbl_don_vi_nghien_cuu[".sqlquery"] = $queryData_tbl_don_vi_nghien_cuu;

$tableEvents["tbl_don_vi_nghien_cuu"] = new eventsBase;

?>
